package charts.series.bars; 

class Outline extends ElementBase {
	
	var outline:Float;
	
	public function new( index:Float, style:Dynamic, group:Float )	{
		
		super( index, style, style.colour, style.tip, style.alpha, group );
		this.outline = style['outline-colour'];
	}
	
	public override function resize( sc:ScreenCoordsBase ):Void {
		
		var h:Dynamic = this.resize_helper( cast( sc, ScreenCoords) );
		
		this.graphics.clear();
		this.graphics.lineStyle(1, this.outline, 1);
		this.graphics.beginFill( this.colour, 1.0 );
		this.graphics.moveTo( 0, 0 );
		this.graphics.lineTo( h.width, 0 );
		this.graphics.lineTo( h.width, h.height );
		this.graphics.lineTo( 0, h.height );
		this.graphics.lineTo( 0, 0 );
		this.graphics.endFill();
		
	}
}
